﻿using NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HotFolderService.Loggers
{
    public class NLogLogger: HotFolderServiceInterface.ILogger
    {
        Logger logger = LogManager.GetCurrentClassLogger();
        public void Trace(string message)
        {
            logger.Info(message);
        }

        public void Exception(Exception ex)
        {
            logger.InfoException(ex.ToString(), ex);
        }
    }
}
